package com.device.grant.dao;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.device.grant.pojo.Apparatus;
import com.device.grant.utils.ColumnCompator;

public interface ApparatusDao {

	boolean addApparatus(Apparatus apparatus);

	boolean updateApparatus(Map<String, Object> changeInfos, Map<String, Object> conditions);

	List<Apparatus> queryApparatus(Integer page, Integer rows, Map<String, Object> params, List<String> blearParams, Map<String, ColumnCompator> compators, String orderBy);

	Integer countApparatus(Map<String, Object> conditions, List<String> blearParams, Map<String, ColumnCompator> compators);

	Apparatus getTheApparatus(Map<String, Object> conditions);

	boolean updateApparatusByBean(Apparatus apparatus);

	List<Apparatus> queryApparatusInGroup(Map<String, Object> conditions);

	List<Apparatus> queryApparatusByIds(Set<Integer> ids);
}
